﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;


public partial class OperaEntry_DateSelect : System.Web.UI.Page
{
    private string format;
    protected void Page_Load(object sender, EventArgs e)
    {
        format = String.IsNullOrEmpty(Request.Params["format"]) ? "yyyy-MM-dd" : Request.Params["format"];
    }
    protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
    {
        TableCell c = e.Cell;
        c.Controls.Clear();
        c.Controls.Add(new LiteralControl("<span onclick=\"javascript:selectNode('" + e.Day.Date.ToString(format) + "');\">" + e.Day.DayNumberText + "</span>"));
    }
}
